package com.hxk.behaviorMode.observer.jdk;

import java.util.Observable;
import java.util.Observer;

public class ObserverA implements Observer {

	private int state;
	
	@Override
	public void update(Observable o, Object arg) {
		state = (int) arg;
	}

	public int getState() {
		return state;
	}
	
}
